package com.wofish.goods.domain;


import lombok.Data;
import com.wofish.common.core.domain.BaseEntity;
import java.util.Date;


/**
 * 商品规格关系表 wf_b2c_goods_spec_index
 * 
 * @author wofish
 * @date 2019-06-16
 */

@Data
public class GoodsSpecIndex extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
    /** 商品类型ID */
    private Long typeId;

    /** 规格ID */
    private Long specId;

    /** 规格值ID */
    private Long specValueId;

    /** 商品ID */
    private Long goodsId;

    /** 货品ID */
    private Long productId;

    /** 更新时间 */
    private Date lastModify;

    /** 规格图片多个id */
    private String imageId;

    /** 规格图片多个url */
    private String imageUrl;



    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;

        GoodsSpecIndex that = (GoodsSpecIndex) o;

        if (!specId.equals(that.specId))
            return false;
        if (!specValueId.equals(that.specValueId))
            return false;
        return productId.equals(that.productId);

    }

    @Override
    public int hashCode() {
        int result = specId.hashCode();
        result = 31 * result + specValueId.hashCode();
        result = 31 * result + productId.hashCode();
        return result;
    }



}
